{% extends 'blank.html.twig' %}
{% block body %}
    <button class="uploadify-button" onclick="ApiRequest()">API请求</button>
{% endblock %}
{% block footer %}
    {{ parent() }}
    <script type="text/javascript" src="/AbsSR/web/static/common/js/md5.js"></script>
    <script type="text/javascript">
        function ApiRequest(){
            var password = $.md5('happykala');
            $.ajax({
                type:'POST',
                url:'{{ path('adminuser_update_password') }}',
                headers:{
                    did:1111,
                    model:'xiaomi',
                    sign:'happykala',
                    version:1
                },
                data:{
                    phone:'18963970962',
                    password:password
                },
                success:function(msg){
                    alert(msg);
                }
            });
        }
    </script>
{% endblock %}